﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace curbside.Extensions
{
    public class ConvertString : BaseString
    {
        public ConvertString(string s) : base(s) { }
    }

    public static class ConvertStringExtensions
    {
        public static JsonString AsJson(this ConvertString s)
        {
            return new JsonString(s.Value);
        }

        public static XmlString AsXml(this ConvertString s)
        {
            return new XmlString(s.Value);
        }
    }
}
